const code = {
  success: 200,
  error: 400,
  unauthorized: 401,
  forbidden: 403,
  notFound: 404,
  internalError: 500,
};
module.exports = {
  success(data = "", msg = "", code = code.success) {
    return { data, msg, code };
  },
  fail(data = "", msg = "", code = code.error) {
    return { data, msg, code };
  },
  code,
};
